#ifndef __MYSQLFACTORY_H__
#define __MYSQLFACTORY_H__
#include"factory.h"
#include"mysqlconnection.h"
#include"mysqlstatement.h"
class MySQLFactory : public DBFactory
{
public:
	MySQLFactory() 
	{
	}
	static DBFactory* getInstance()
	{
		static MySQLFactory mySQLFactory;
		return &mySQLFactory;
	}
	unique_ptr<Connection> createConnection()
	{
		return make_unique<MySQLConnection>();
	}
	unique_ptr<Statement> createStatement()
	{
		return make_unique<MySQLStatement>();
	}
};
#endif